package com.rgbgame.editor;

import processing.core.PApplet;

public class SaveWidget extends UIDockWidget {


	/**
	 * 
	 */
		
	//public boolean locked;

		public SaveWidget(PApplet pApplet, float w, float h, UIDock p){
			super(pApplet, w,h,"Save File",p);
			normalIcon = pApplet.loadImage("save.png");
			hoverIcon = normalIcon;
			selectedIcon = pApplet.loadImage("save.png");
			selectedIcon.filter(PApplet.INVERT);
			selectedIcon.filter(PApplet.THRESHOLD);
			//locked = false;
		}

		public SaveWidget(PApplet pApplet, UIDock p){
			this(pApplet, p.dockWidth,p.dockWidth,p);
			//locked = false;
		}

		public void onSelect(){
			//this.com.rgbgame.editor.rgbEditor.toolType = this.com.rgbgame.editor.rgbEditor.TOOL_MAG;
			//selectMe();
			//mode = this.com.rgbgame.editor.rgbEditor.SELECTED;
			//FIXME:
			//locked = true;
			rgbEditor.editor.chooseSaveFile();
			//com.rgbgame.editor.rgbEditor.lastPressed = false;
		}

}
